package com.lbssoft.gpsbd.model.vo;

import com.lbssoft.gpsbd.model.User;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by nczc on 2018/2/24.
 */
public class UserParam {
    private int id;

    @NotNull(message = "AccountEmptyError")
    @Size(min=2, max=16, message = "AccountLengthError")
    private String account;

    @NotNull(message = "PasswordEmptyError")
    @Size(min=6, max=16, message = "PasswordLengthError")
    private String password;

    private String password2;

    private String email;

    private String phone;

    private Integer[] roleIds;

    private boolean disabled;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }


    public Integer[] getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(Integer[] roleIds) {
        this.roleIds = roleIds;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }
}
